import { IsNumber, IsString, IsDateString, IsOptional } from 'class-validator';

export class CreateTimerRecordDto {
  @IsNumber()
  userId: number;

  @IsString()
  operator: string;

  @IsNumber()
  @IsOptional()
  duration?: number;

  @IsDateString()
  startTime: Date;

  @IsDateString()
  @IsOptional()
  endTime?: Date;

  @IsNumber()
  operationTypeId: number;

  @IsString()
  @IsOptional()
  status?: string;
}